package com.employee.mapper;

import com.employee.pojo.dto.DeptDTO;
import com.employee.pojo.dto.DeptUpdateDTO;
import com.employee.pojo.dto.UpdateStatusDTO;
import com.employee.pojo.entry.Dept;
import com.employee.pojo.entry.DeptHistory;
import com.employee.pojo.vo.DeptEmpVO;
import com.employee.pojo.vo.DeptInfoVO;
import com.employee.pojo.vo.DeptVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface DeptMapper {
    List<DeptHistory> getDeptList(@Param("id") Long id);

    List<DeptVO> getDeptListInfo();
    DeptInfoVO selectDeptInfo(@Param("id") Integer id);

    List<DeptEmpVO> getDeptEmp(@Param("id") Integer id);
    void  addDept(DeptDTO deptDTO);
    List<DeptVO>  selectByNameAndStatus(@Param("deptName") String deptName,@Param("status")String status);
    void updateDept(DeptUpdateDTO updateDept);
    void updateStatus(@Param("id") Integer id,@Param("status") String status);
}
